<%include file="include/head.html"%>
<div class="wrapper">
  <div id="div-home" class="main-info-box">
    <%include file="include/crumbs.html"%>
    <%include file="include/edit_nav.html"%>   
    <div class="div-info-body">
      <%if $history|@count gt 0%>
      <table>
	<th clsss="version">版本</th>
	<th class="version">称谓</th>
	<th class="date">姓名</th>
	<th class="state">状态</th>
	<th clsss="author">贡献者</th>
	<th clsss="date">编辑时间</th>
	<th clsss="op">操作</th>
	<% foreach name=history from=$history item=info %>
	<tr>
	  <td><%$info.id%></td>
	  <td><%$info.relation%></td>
	  <td><%$info.member%></td>
          <td><%if $info.content.state eq $RESOURCE_STATE_DELETED%>已删除<%else%>正常<%/if%></td>
	  <td>
            <a href="/users/contribution?userid=<%$info.author_id%>">
	      <%$info.author_name%>
	    </a>
	  </td>
	  <td><%$info.ts_created%></td>
	  <td class="op">
            <a href="/relation/restore?userid=<%$user.id%>&relationid=<%$info.content.id%>&historyid=<%$info.id%>">恢复到此版本</a>
	  </td>
	</tr>
	<%/foreach%>
	<tr>
	  <td colspan="8">
	    <%$page%>
	  </td>
	</tr>
      </table>
      <%else%>
      没有找到历史记录。
      <%/if%>
    </div>
    <div class="clear"></div>
  </div>
</div>
<%include file="include/bottom.html"%>

